package com.seanliao.nav.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.seanliao.nav.entity.Article;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 文章表 Mapper 接口
 * </p>
 *
 * @author Sean_Liao
 * @since 2024-03-06
 */
public interface ArticleMapper extends BaseMapper<Article> {

    /**
     * 分页文章
     *
     * @param pp
     * @param qw
     * @return
     */
    IPage<Map<String, Object>> listArticle(IPage<Map<String, Object>> pp, @Param("ew") QueryWrapper<?> qw);

}
